#include<stdio.h>
int main()
{
	double i, t, sum=0;
	double sign = -1;
	for (i = 1; i <= 100; i++)
	{
		sign = -sign;
		t = sign / i;
		sum = sum + t;
	}
	printf("%f\n", sum);
	return 0;
}